JA = java
JC = javac
JF = jflex
JD = javadoc

.PHONY: run
.PHONY: doc

vpath = src bin

build: OberonScanner.java
	$(JC) -d bin ./src/*.java
	echo "finish building"

OberonScanner.java:
	$(JF) ./src/Oberon.flex

run:
	$(JA) -classpath ./bin:./ OberonScanner ./src/apple.obr

doc:
	$(JD) -private -author -version -d ./doc -classpath ./bin:./ ./src/*.java

clean: 
	rm ./src/OberonScanner.java
	rm ./bin/*.class
	rm -rf ./doc/*
	
